﻿<%@ Page ValidateRequest="false" Title="CTHS" Language="C#" MasterPageFile="~/main/masterpage/main_level1.Master"
    AutoEventWireup="true" CodeBehind="ctbangkhaosat.aspx.cs" Inherits="nkstdgia.main.ctbangkhaosat" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<%@ Register Assembly="wsRK.wsControls" Namespace="wsRK.wsControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phd_content" runat="server">

    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=<%= Google_API_key%>"
        type="text/javascript"></script>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="webapplication_form_header">
                <div class="left">
                    <h1>
                        <asp:Label ID="lblTitle" runat="server">Bảng khảo sát giá bất động sản</asp:Label>
                    </h1>
                </div>
            </div>
            <div class="action_bar">
                <div class="right">
                    <cc1:wsBtnAction ID="btnExport" runat="server" LocaleText="Export" ButtonType="ButtonExport"
                        OnClientClick="javascript:window.location.href='/FileDownload.ashx?type=exportptd&id='"></cc1:wsBtnAction>
                    <cc1:wsBtnAction ID="btnAdd" runat="server" LocaleText="Add" ButtonType="ButtonAdd"
                        OnClick="btnAdd_Click" OnClientClick="javascript:Dialog.showLoader();"></cc1:wsBtnAction>
                    <cc1:wsBtnAction ID="btnSaveTemp" runat="server" LocaleText="SaveTemp" ButtonType="ButtonSave"
                        OnClick="btnSaveTemp_Click" OnClientClick="javascript:Dialog.showLoader();"></cc1:wsBtnAction>
                    <cc1:wsBtnAction ID="btnSave" runat="server" LocaleText="Save" ButtonType="ButtonSave"
                        OnClick="btnSave_Click" OnClientClick="javascript:Dialog.showLoader();"></cc1:wsBtnAction>
                </div>
                <div class="left">
                    <cc1:wsBtnAction ID="btnDelete" runat="server" LocaleText="Delete" ButtonType="ButtonDelete"
                        OnClick="btnDelete_Click" OnClientClick="javascript:if(confirm('Bạn có chắc là muốn xóa?')){Dialog.showLoader();return true;}else{return false;}"></cc1:wsBtnAction>
                </div>
            </div>
            <table class="option_table">
                <tr>
                    <td colspan="2">
                        <p style="color: Red">
                            <asp:Label ID="lblErrorMessge" runat="server"></asp:Label></p>
                    </td>
                </tr>
                <tr>
                    <td class="option_table_td_150 textright">
                        <span>Phiếu số</span>
                    </td>
                    <td>
                        <input runat="server" type="hidden" id="maPhieuKhaoSat">
                        <asp:TextBox ID="txtPhieuSo" runat="server" Width="400px" MaxLength="200" CssClass="requiredfield"></asp:TextBox>
                    </td>
                </tr>
                <%--<tr>
                    <td class="option_table_td_150 textright">
                        <span>Tài liệu</span>
                    </td>
                    <td>
                        <div id="upload_form">
                            <asp:Literal ID="litDocument" runat="server" />
                            <asp:FileUpload ID="fuPictureUpload" runat="server" />
                        </div>
                    </td>
                </tr>--%>
                <tr>
                    <td class="option_table_td_150 textright">
                        <span>Quận</span>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlQuan" runat="server" DataTextField="NOI_DUNG" DataValueField="MA_THAM_SO"
                            AutoPostBack="True" OnSelectedIndexChanged="ddlQuan_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="option_table_td_150 textright">
                        <span>Phường</span>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlPhuong" runat="server" DataTextField="NOI_DUNG" DataValueField="MA_THAM_SO">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="option_table_td_150 textright">
                        <span>Đường</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtDuong" runat="server" Width="400px" MaxLength="200" CssClass="requiredfield"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="option_table_td_150 textright">
                        <span>Đoạn đường</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtDoanDuong" runat="server" Width="400px" MaxLength="200" CssClass="requiredfield"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="option_table_td_150 textright">
                        <span>Địa chỉ bất động sản</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtDiaChiChuSuDung" runat="server" Width="400px" MaxLength="200"></asp:TextBox>
                        <img onclick="resetMapWithAdress();" width="34px" alt="Nhấn để tải vị trí ảnh trên bản đồ"
                            longdesc="Nhấn để tải vị trí ảnh trên bản đồ" src="../../images/map.jpg" />
                    </td>
                </tr>
                <tr>
                    <td class="option_table_td_150 textright">
                        <span>Kinh độ</span>
                    </td>
                    <td>
                        <asp:TextBox onkeypress="return false;" ID="txtKinhDo" runat="server" Width="400px"
                            MaxLength="200"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="option_table_td_150 textright">
                        <span>Vĩ độ</span>
                    </td>
                    <td>
                        <asp:TextBox onkeypress="return false;" ID="txtViDo" runat="server" Width="400px"
                            MaxLength="200"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <div id="map_canvas" style="width: 500px; height: 300px">
                        </div>
                    </td>
                </tr>
            </table>
            <div class="accordion-custom">
                <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                    <span class="groupWidget-min">&nbsp;</span> <span class="ui-dialog-title">1. THÔNG TIN
                        CHUNG</span>
                </div>
                <table class="option_table">
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>1.1.Tên chủ sử dụng</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtChuSuDung" runat="server" Width="400px" MaxLength="200" CssClass="requiredfield"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>1.2.Địa chỉ chủ sử dụng</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtDiaChiChuSuDung_CHU" runat="server" Width="400px" MaxLength="200"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>1.3.Tình trạng pháp lý</span>
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxPLGiayHuong" runat="server" Checked="true" Text="Giấy hường"
                                GroupName="TinhTrangPhapLy" onclick="disableTextBox(txtPLKhac)" /><br />
                            <asp:RadioButton ID="cbxPLGiayDo" runat="server" Text="Giấy đỏ" GroupName="TinhTrangPhapLy"
                                onclick="disableTextBox(txtPLKhac)" /><br />
                            <asp:RadioButton ID="cbxPLGiayHong" runat="server" Text="Giấy hồng" GroupName="TinhTrangPhapLy"
                                onclick="disableTextBox(txtPLKhac)" /><br />
                            <asp:RadioButton ID="cbxPLKhac" runat="server" Text="Khác" GroupName="TinhTrangPhapLy"
                                onclick="enableTextBox(txtPLKhac)" />
                            <asp:TextBox ID="txtPLKhac" runat="server" Width="200px" MaxLength="200" Enabled="false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>1.4.Giá giao dịch</span>
                        </td>
                        <td>
                            <cc1:wsTxtDouble ID="txtGiaGiaoDich" runat="server"></cc1:wsTxtDouble>
                            <asp:DropDownList ID="ddlLoaiGiaGiaoDich" runat="server">
                                <asp:ListItem Value="0">Triệu đồng</asp:ListItem>
                                <%--<asp:ListItem Value="1">Cây vàng</asp:ListItem>--%>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>1.5.Thời điểm giao dịch</span>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlTDGDThang" runat="server">
                            </asp:DropDownList>
                            <asp:DropDownList ID="ddlTDGDNam" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>1.6.Hình thức thanh toán</span>
                        </td>
                        <td>
                            <asp:RadioButton ID="rbHTTTTraNgay" runat="server" Text="Trả ngay" GroupName="HinhThucThanhToan"
                                Checked="True" onclick="disableTextBox(txtHTTTKhac)" /><br />
                            <asp:RadioButton ID="rbHTTTTraCham" runat="server" Text="Trả chậm" GroupName="HinhThucThanhToan"
                                onclick="disableTextBox(txtHTTTKhac)" /><br />
                            <asp:RadioButton ID="rbHTTTKhac" runat="server" Text="Khác" GroupName="HinhThucThanhToan"
                                onclick="enableTextBox(txtHTTTKhac)" />
                            <asp:TextBox ID="txtHTTTKhac" runat="server" Width="200px" MaxLength="200" Enabled="false"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                    <span class="groupWidget-min">&nbsp;</span> <span class="ui-dialog-title">2. THÔNG TIN
                        VỀ THỬA ĐẤT</span></div>
                <table class="option_table">
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>2.1.Vị trí tọa lạc</span>
                        </td>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        Thửa số
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtTTTDatThuaSo" runat="server" Width="100px" MaxLength="200"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Tờ bản đồ
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtTTTDatToBanDo" runat="server" Width="100px" MaxLength="200"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>2.2.Diện tích khuôn viên</span>
                        </td>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        Chiều dài(m):
                                    </td>
                                    <td>
                                        Chiều rộng(m):
                                    </td>
                                    <td>
                                        Tổng diện tích(m2):
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTTDatDienTichDai" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTTDatDienTichRong" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTTDatDienTichTong" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>2.3.Qui hoạch</span>
                        </td>
                        <td>
                            <table width="100%">
                                <tr>
                                    <td class="option_table_td_150 textright">
                                        Diện tích công nhận:
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTTDatQuiHoachCongNhan" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="option_table_td_150 textright">
                                        Diện tích không công nhận:
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTTDatQuiHoachKhongCongNhan" runat="server"></cc1:wsTxtDouble>
                                        (m2)
                                    </td>
                                </tr>
                                <tr>
                                    <td class="option_table_td_150 textright">
                                        Diện tích sử dụng chung:
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTTDatQuiHoachSuDungChung" runat="server"></cc1:wsTxtDouble>
                                        (m2)
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>2.4.Hình dáng thửa đất</span>
                        </td>
                        <td>
                            <asp:RadioButton ID="rbTTTDatHinhDangVuong" runat="server" Text="Vuông" GroupName="HinhDangThuaDat"
                                Checked="True" onclick="disableTextBox(txtTTTDatHinhDangKhac)" /><br />
                            <asp:RadioButton ID="rbTTTDatHinhDangTop" runat="server" Text="Tóp" GroupName="HinhDangThuaDat"
                                onclick="disableTextBox(txtTTTDatHinhDangKhac)" /><br />
                            <asp:RadioButton ID="rbTTTDatHinhDangNoHau" runat="server" Text="Nở hậu" GroupName="HinhDangThuaDat"
                                onclick="disableTextBox(txtTTTDatHinhDangKhac)" /><br />
                            <asp:RadioButton ID="rbTTTDatHinhDangKhac" runat="server" Text="Khác" GroupName="HinhDangThuaDat"
                                onclick="enableTextBox(txtTTTDatHinhDangKhac)" />
                            <asp:TextBox ID="txtTTTDatHinhDangKhac" runat="server" Width="200px" MaxLength="200"
                                Enabled="false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>2.5.Loại đường phố</span>
                        </td>
                        <td>
                            2.5.1.<asp:RadioButton ID="rbMatTien" runat="server" Text="Mặt tiền" GroupName="LoaiDuongPho"
                                Checked="true" />
                            <br />
                            <asp:Panel ID="pnlMatTien" runat="server">
                                <table style="margin-left: 10px">
                                    <tr>
                                        <td class="option_table_td_150 textright">
                                            <span>a.Lộ giới</span>
                                        </td>
                                        <td>
                                            <cc1:wsTxtDouble ID="txtTTTDatMatTienLoGioi" runat="server"></cc1:wsTxtDouble>
                                            (m)
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="option_table_td_150 textright">
                                            <span>b.Số mặt tiền</span>
                                        </td>
                                        <td>
                                            <cc1:wsTxtInterger ID="txtTTTDatMatTienSoMT" runat="server"></cc1:wsTxtInterger>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="option_table_td_150 textright">
                                            <span>c.Làn đường</span>
                                        </td>
                                        <td>
                                            <asp:RadioButton ID="rbTTTDatMatTienMotChieu" runat="server" Text="Một chiều" GroupName="LanDuong"
                                                Checked="True" /><br />
                                            <asp:RadioButton ID="rbTTTDatMatTienHaiChieu" runat="server" Text="Hai chiều" GroupName="LanDuong" /><br />
                                            <asp:RadioButton ID="rbTTTDatMatTienPhanCach" runat="server" Text="Có dãy phân cách"
                                                GroupName="LanDuong" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <br />
                            2.5.2.<asp:RadioButton ID="rbHem" runat="server" Text="Hẻm" GroupName="LoaiDuongPho" />
                            <br />
                            <asp:Panel ID="pnlHem" runat="server">
                                2.5.2.1.<asp:RadioButton ID="rbHemCap1" Checked="True" runat="server" Text="Hẻm cấp 1"
                                    GroupName="LoaiCapHem" />
                                <br />
                                <asp:Panel ID="pnlHemCap1" runat="server">
                                    <div style="margin-left: 80px;">
                                        <asp:RadioButton ID="rbTTTDatDuongPhoCap1" Checked="True" runat="server" Text="Cấp 1"
                                            GroupName="LoaiCapHem1" /><br />
                                        <asp:RadioButton ID="rbTTTDatDuongPhoCap2" runat="server" Text="Cấp 2" GroupName="LoaiCapHem1" /><br />
                                        <asp:RadioButton ID="rbTTTDatDuongPhoCap3" runat="server" Text="Cấp 3" GroupName="LoaiCapHem1" /><br />
                                        <asp:RadioButton ID="rbTTTDatDuongPhoCap4" runat="server" Text="Cấp 4" GroupName="LoaiCapHem1" />
                                    </div>
                                </asp:Panel>
                                <br />
                                2.5.2.2.<asp:RadioButton ID="rbHemCapKhac" runat="server" Text="Hẻm cấp khác" GroupName="LoaiCapHem" />
                                <br />
                                <asp:Panel ID="pnlHemCapKhac" runat="server">
                                    <div style="margin-left: 80px;">
                                        <asp:RadioButton ID="rbTTTHemCapKhacCap1" Checked="True" runat="server" Text="Cấp 1"
                                            GroupName="LoaiCapHemKhac" /><br />
                                        <asp:RadioButton ID="rbTTTHemCapKhacCap2" runat="server" Text="Cấp 2" GroupName="LoaiCapHemKhac" /><br />
                                        <asp:RadioButton ID="rbTTTHemCapKhacCap3" runat="server" Text="Cấp 3" GroupName="LoaiCapHemKhac" /><br />
                                        <asp:RadioButton ID="rbTTTHemCapKhacCap4" runat="server" Text="Cấp 4" GroupName="LoaiCapHemKhac" />
                                    </div>
                                </asp:Panel>
                            </asp:Panel>
                            <br />

                            <script type="text/javascript">
                                var rbMatTien = "<%= rbMatTien.ClientID %>";
                                var rbHem = "<%= rbHem.ClientID %>";
                                var rbHemCap1 = "<%= rbHemCap1.ClientID %>";
                                var rbHemCapKhac = "<%= rbHemCapKhac.ClientID %>";
                                var pnlMatTien = "<%= pnlMatTien.ClientID %>";
                                var pnlHem = "<%= pnlHem.ClientID %>";
                                var pnlHemCap1 = "<%= pnlHemCap1.ClientID %>";
                                var pnlHemCapKhac = "<%= pnlHemCapKhac.ClientID %>";
                                var rbTTTDatDuongPhoCap1 = "<%= rbTTTDatDuongPhoCap1.ClientID %>";

                                $('#' + rbMatTien).attr('checked', true);
                                $('#' + rbMatTien).bind('click', function() {
                                    $('#' + pnlMatTien).show();
                                    $('#' + pnlHem).hide();
                                });
                                $('#' + rbHem).bind('click', function() {
                                    $('#' + pnlMatTien).hide();
                                    $('#' + pnlHem).show();
                                });
                                $('#' + rbHemCap1).bind('click', function() {
                                    $('#' + pnlHemCap1).show();
                                    $('#' + pnlHemCapKhac).hide();
                                });
                                $('#' + rbHemCapKhac).bind('click', function() {
                                    $('#' + pnlHemCap1).hide();
                                    $('#' + pnlHemCapKhac).show();
                                });
                            </script>

                        </td>
                    </tr>
                </table>
                <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                    <span class="groupWidget-min">&nbsp;</span> <span class="ui-dialog-title">3. THÔNG TIN
                        VỀ CÔNG TRÌNH XÂY DỰNG TRÊN ĐẤT</span></div>
                <table class="option_table">
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>3.1.Loại nhà</span>
                        </td>
                        <td>
                            <asp:RadioButton ID="rbTTCTLoaiNhaBietThu" runat="server" Text="Biệt thự" GroupName="LoaiNha"
                                Checked="True" onclick="disableTextBox(txtTTCTLoaiNhaChungChuKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTLoaiNhaPho" runat="server" Text="Phố" GroupName="LoaiNha"
                                onclick="disableTextBox(txtTTCTLoaiNhaChungChuKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTLoaiNhaLienKe" runat="server" Text="Liên kế" GroupName="LoaiNha"
                                onclick="disableTextBox(txtTTCTLoaiNhaChungChuKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTLoaiNhaChungCu" runat="server" Text="Chung cư" GroupName="LoaiNha"
                                onclick="disableTextBox(txtTTCTLoaiNhaChungChuKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTLoaiNhaKhac" runat="server" Text="Khác" GroupName="LoaiNha"
                                onclick="enableTextBox(txtTTCTLoaiNhaChungChuKhac)" />
                            <asp:TextBox ID="txtTTCTLoaiNhaChungChuKhac" runat="server" Enabled="False"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>3.2.Cấp nhà</span>
                        </td>
                        <td>
                            <asp:RadioButton ID="rbTTCTCapNha1" runat="server" Text="Cấp 1" GroupName="CapNha"
                                Checked="True" /><br />
                            <asp:RadioButton ID="rbTTCTCapNha2" runat="server" Text="Cấp 2" GroupName="CapNha" /><br />
                            <asp:RadioButton ID="rbTTCTCapNha3" runat="server" Text="Cấp 3" GroupName="CapNha" /><br />
                            <asp:RadioButton ID="rbTTCTCapNha4" runat="server" Text="Cấp 4" GroupName="CapNha" /><br />
                            <asp:RadioButton ID="rbTTCTCapNhaTam" runat="server" Text="Tạm" GroupName="CapNha" />
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>3.3.Hướng nhà</span>
                        </td>
                        <td>
                            <asp:RadioButton ID="rbTTCTHuongNhaDong" Checked="True" runat="server" Text="Đông"
                                GroupName="HuongNha" /><br />
                            <asp:RadioButton ID="rbTTCTHuongNhaDongBac" runat="server" Text="Đông bắc" GroupName="HuongNha" /><br />
                            <asp:RadioButton ID="rbTTCTHuongNhaTay" runat="server" Text="Tây" GroupName="HuongNha" /><br />
                            <asp:RadioButton ID="rbTTCTHuongNhaTayBac" runat="server" Text="Tây bắc" GroupName="HuongNha" /><br />
                            <asp:RadioButton ID="rbTTCTHuongNhaNam" runat="server" Text="Nam" GroupName="HuongNha" /><br />
                            <asp:RadioButton ID="rbTTCTHuongNhaDongNam" runat="server" Text="Đông nam" GroupName="HuongNha" /><br />
                            <asp:RadioButton ID="rbTTCTHuongNhaBac" runat="server" Text="Bắc" GroupName="HuongNha" /><br />
                            <asp:RadioButton ID="rbTTCTHuongNhaTayNam" runat="server" Text="Tây nam" GroupName="HuongNha" /><br />
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>3.3.Giấy phép xây dựng</span>
                        </td>
                        <td>
                            <asp:RadioButton ID="rbTTCTGiayPhepCo" runat="server" Text="Có" GroupName="GiayPhepXayDung"
                                Checked="True" /><br />
                            <asp:RadioButton ID="rbTTCTGiayPhepKhong" runat="server" Text="Không" GroupName="GiayPhepXayDung" /><br />
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>3.4.Diện tích sàn xây dựng</span>
                        </td>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        Phần được công nhận (m2)
                                    </td>
                                    <td>
                                        Phần không được công nhận (m2)
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTCTDienTichCongNhan" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTCTDienTichKhongCongNhan" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>3.5.Vật liệu xây dựng</span>
                        </td>
                        <td>
                            3.5.1.Kết cấu khung<br />
                            <asp:RadioButton ID="rbTTCTVatLieuKhungBTCT" runat="server" Text="BTCT" GroupName="KetCauKhung"
                                Checked="True" onclick="disableTextBox(txtTTCTVatLieuKhungKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuKhungGach" runat="server" Text="Gạch" GroupName="KetCauKhung"
                                onclick="disableTextBox(txtTTCTVatLieuKhungKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuKhungGo" runat="server" Text="Gỗ" GroupName="KetCauKhung"
                                onclick="disableTextBox(txtTTCTVatLieuKhungKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuKhungKhac" runat="server" Text="Khác" GroupName="KetCauKhung"
                                onclick="enableTextBox(txtTTCTVatLieuKhungKhac)" />
                            <asp:TextBox ID="txtTTCTVatLieuKhungKhac" runat="server" Enabled="False"></asp:TextBox><br />
                            3.5.2.Móng<br />
                            <asp:RadioButton ID="rbTTCTVatLieuMongCoc" runat="server" Text="Cọc" GroupName="Mong"
                                Checked="True" onclick="disableTextBox(txtTTCTVatLieuMongKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuMongBang" runat="server" Text="Bảng" GroupName="Mong"
                                onclick="disableTextBox(txtTTCTVatLieuMongKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuMongBe" runat="server" Text="Bè" GroupName="Mong"
                                onclick="disableTextBox(txtTTCTVatLieuMongKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuMongKhac" runat="server" Text="Khác" GroupName="Mong"
                                onclick="enableTextBox(txtTTCTVatLieuMongKhac)" />
                            <asp:TextBox ID="txtTTCTVatLieuMongKhac" runat="server" Enabled="False"></asp:TextBox><br />
                            3.5.3.Tường nhà<br />
                            <asp:RadioButton ID="rbTTCTVatLieuTuongGach" runat="server" Text="Gạch" GroupName="TuongNha"
                                Checked="True" onclick="disableTextBox(txtTTCTVatLieuTuongKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuTuongGo" runat="server" Text="Gỗ" GroupName="TuongNha"
                                onclick="disableTextBox(txtTTCTVatLieuTuongKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuTuongTole" runat="server" Text="Tole" GroupName="TuongNha"
                                onclick="disableTextBox(txtTTCTVatLieuTuongKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuTuongKhac" runat="server" Text="Khác" GroupName="TuongNha"
                                onclick="enableTextBox(txtTTCTVatLieuTuongKhac)" />
                            <asp:TextBox ID="txtTTCTVatLieuTuongKhac" runat="server" Enabled="false"></asp:TextBox><br />
                            3.5.4.Nền<br />
                            <asp:RadioButton ID="rbTTCTVatLieuNenGach" runat="server" Text="Gạch" GroupName="Nen"
                                Checked="True" onclick="disableTextBox(txtrbTTCTVatLieuNenKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuNenGo" runat="server" Text="Gỗ" GroupName="Nen"
                                onclick="disableTextBox(txtrbTTCTVatLieuNenKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuNenXiMang" runat="server" Text="Xi măng" GroupName="Nen"
                                onclick="disableTextBox(txtrbTTCTVatLieuNenKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuNenKhac" runat="server" Text="Khác" GroupName="Nen"
                                onclick="enableTextBox(txtrbTTCTVatLieuNenKhac)" />
                            <asp:TextBox ID="txtrbTTCTVatLieuNenKhac" runat="server" Enabled="false"></asp:TextBox><br />
                            3.5.5.Mái<br />
                            <asp:RadioButton ID="rbTTCTVatLieuMaiBang" runat="server" Text="Bằng" GroupName="Mai"
                                Checked="True" onclick="disableTextBox(txtTTCTVatLieuMaiKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuMaiNgoi" runat="server" Text="Ngói" GroupName="Mai"
                                onclick="disableTextBox(txtTTCTVatLieuMaiKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuMaiTole" runat="server" Text="Tole" GroupName="Mai"
                                onclick="disableTextBox(txtTTCTVatLieuMaiKhac)" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuMaiKhac" runat="server" Text="Khác" GroupName="Mai"
                                onclick="enableTextBox(txtTTCTVatLieuMaiKhac)" />
                            <asp:TextBox ID="txtTTCTVatLieuMaiKhac" runat="server" Enabled="false"></asp:TextBox><br />
                            3.5.6.Đánh giá chất lượng còn lại<br />
                            <table>
                                <tr>
                                    <td>
                                        Móng
                                    </td>
                                    <td>
                                        Sàn
                                    </td>
                                    <td>
                                        Tường
                                    </td>
                                    <td>
                                        Trần
                                    </td>
                                    <td>
                                        Mái
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTCTVatLieuChatLuongMong" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTCTVatLieuChatLuongSan" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTCTVatLieuChatLuongTuong" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTCTVatLieuChatLuongTran" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTCTVatLieuChatLuongMai" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            3.5.7.Tỉ lệ kết cấu chính<br />
                            <table>
                                <tr>
                                    <td>
                                        Móng
                                    </td>
                                    <td>
                                        Sàn
                                    </td>
                                    <td>
                                        Tường
                                    </td>
                                    <td>
                                        Trần
                                    </td>
                                    <td>
                                        Mái
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTCTVatLieuTiLeKetCauMong" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTCTVatLieuTiLeKetCauSan" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTCTVatLieuTiLeKetCauTuong" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTCTVatLieuTiLeKetCauTran" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                    <td>
                                        <cc1:wsTxtDouble ID="txtTTCTVatLieuTiLeKetCauMai" runat="server"></cc1:wsTxtDouble>
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td>
                                        3.5.8.Số phòng ngủ
                                    </td>
                                    <td>
                                        <cc1:wsTxtInterger ID="txtTTCTVatLieuSoPhongNgu" runat="server"></cc1:wsTxtInterger>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        3.5.9.Số nhà vệ sinh
                                    </td>
                                    <td>
                                        <cc1:wsTxtInterger ID="txtTTCTVatLieuSoNhaVS" runat="server"></cc1:wsTxtInterger>
                                    </td>
                                </tr>
                            </table>
                            3.5.10.Trang trí nội thất<br />
                            <asp:RadioButton ID="rbTTCTVatLieuTTNTCaoCap" runat="server" Text="Cao cấp" GroupName="TrangTriNoiThat"
                                Checked="True" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuTTNTKha" runat="server" Text="Khá" GroupName="TrangTriNoiThat" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuTTNTTrungBinh" runat="server" Text="Trung bình"
                                GroupName="TrangTriNoiThat" /><br />
                            <asp:RadioButton ID="rbTTCTVatLieuTTNTTam" runat="server" Text="Tạm" GroupName="TrangTriNoiThat" /><br />
                            3.5.11.Công trình xây dựng khác<br />
                            <asp:CheckBox ID="rbTTCTVatLieuCongTrinhSanThuong" runat="server" Text="Sân thượng" /><br />
                            <asp:CheckBox ID="rbTTCTVatLieuCongTrinhHoBoi" runat="server" Text="Hồ bơi" /><br />
                            <asp:CheckBox ID="rbTTCTVatLieuCongTrinhSan" runat="server" Text="Sân" /><br />
                            <asp:CheckBox ID="rbTTCTVatLieuCongTrinhKhac" runat="server" Text="Khác" onclick="enableTextBox(txtTTCTVatLieuCongTrinhKhac)" />
                            <asp:TextBox ID="txtTTCTVatLieuCongTrinhKhac" runat="server" Enabled="false"></asp:TextBox><br />
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>3.6.Năm xây dựng xong</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtTTCTNamXayDungXong" runat="server"></asp:TextBox>
                            Hoặc số năm đã sử dụng
                            <cc1:wsTxtInterger ID="txtTTCTSoNamSuDung" runat="server"></cc1:wsTxtInterger>
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>3.7.Đơn giá xây dựng bình quân</span>
                        </td>
                        <td>
                            <cc1:wsTxtDouble ID="txtTTCTDonGiaBinhQuan" runat="server"></cc1:wsTxtDouble>
                            (triệu đồng/m2)
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>3.8.Tuổi đời kinh tế bất động sản(số năm)</span>
                        </td>
                        <td>
                            <cc1:wsTxtInterger ID="txtTTCTTuoiDoi" runat="server"></cc1:wsTxtInterger>
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>3.9.Giá trị xây dựng công trình</span>
                        </td>
                        <td>
                            <cc1:wsTxtDouble ID="txtTTCTGiaTriXayDung" runat="server"></cc1:wsTxtDouble>
                            (triệu đồng)
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>3.10.Số lần sửa chữa</span>
                        </td>
                        <td>
                            <cc1:wsTxtInterger ID="txtTTCTSoLanSuaChua" runat="server"></cc1:wsTxtInterger>
                        </td>
                    </tr>
                </table>
                <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                    <span class="groupWidget-min">&nbsp;</span> <span class="ui-dialog-title">4. THÔNG TIN
                        VỊ TRÍ</span></div>
                <table class="option_table">
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>4.1.Cách trung tâm thành phố</span>
                        </td>
                        <td>
                            <cc1:wsTxtDouble ID="txtTTVTCachTrungTam" runat="server"></cc1:wsTxtDouble>
                            (km)
                        </td>
                    </tr>
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>4.2.Khoảng cách đến trục đường chính</span>
                        </td>
                        <td>
                            <cc1:wsTxtDouble ID="txtTTVTCachTrucDuongChinh" runat="server"></cc1:wsTxtDouble>
                            (km)
                        </td>
                    </tr>
                </table>
                <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                    <span class="groupWidget-min">&nbsp;</span> <span class="ui-dialog-title">5. LỢI THẾ
                        KINH DOANH</span></div>
                <table class="option_table">
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>5.1.Khu vực kinh doanh</span>
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxKVKDKhongCo" runat="server" Text="Không có" GroupName="KhuVucKinhDoanh"
                                Checked="True" /><br />
                            <asp:RadioButton ID="cbxKVKDTrungBinh" runat="server" Text="Trung bình" GroupName="KhuVucKinhDoanh" /><br />
                            <asp:RadioButton ID="cbxKVKDSamUat" runat="server" Text="Sầm uất" GroupName="KhuVucKinhDoanh" />
                        </td>
                    </tr>
                </table>
                <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                    <span class="groupWidget-min">&nbsp;</span> <span class="ui-dialog-title">6. THÔNG TIN
                        VỀ CƠ SỞ HẠ TẦNG</span></div>
                <table class="option_table">
                    <tr>
                        <td class="option_table_td_150 textright">
                            <span>A.Hạ tầng kỹ thuật</span>
                        </td>
                        <td>
                            6.1 Điện<br />
                            <table style="margin-left: 20px">
                                <tr>
                                    <td>
                                        6.1.1. Đồng hồ điện
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTDienDHDienCo" runat="server" Text="Có" GroupName="DongHoDien"
                                            Checked="True" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTDienDHDienKhong" runat="server" Text="Không" GroupName="DongHoDien" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        6.1.2. Cáp treo
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTDienCapTreoCo" runat="server" Text="Có" GroupName="CapTreo"
                                            Checked="True" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTDienCapTreoKhong" runat="server" Text="Không" GroupName="CapTreo" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        6.1.3. Cáp ngầm
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTDienCapNgamCo" runat="server" Text="Có" GroupName="CapNgam"
                                            Checked="True" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTDienCapNgamKhong" runat="server" Text="Không" GroupName="CapNgam" />
                                    </td>
                                </tr>
                            </table>
                            6.2. Nước<br />
                            <table style="margin-left: 20px">
                                <tr>
                                    <td>
                                        6.2.1. Đồng hồ nước
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTNuocDHNuocCo" runat="server" Text="Có" GroupName="DongHoNuoc"
                                            Checked="True" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTNuocDHNuocKhong" runat="server" Text="Không" GroupName="DongHoNuoc" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        6.2.2. Áp lực nước
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTNuocALNuocManh" runat="server" Text="Mạnh" GroupName="ApLucNuoc"
                                            Checked="True" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTNuocALNuocYeu" runat="server" Text="Yếu" GroupName="ApLucNuoc" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        6.2.3. Chất lượng nước
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTNuocCLNuocSach" runat="server" Text="Sạch" GroupName="ChatLuongNuoc"
                                            Checked="True" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTNuocCLNuocDo" runat="server" Text="Dơ" GroupName="ChatLuongNuoc" />
                                    </td>
                                </tr>
                            </table>
                            6.3. Môi trường sống<br />
                            <table style="margin-left: 20px">
                                <tr>
                                    <td>
                                        6.3.1. Tiếng ồn
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTMTTiengOnCo" runat="server" Text="Có" GroupName="TiengOn"
                                            Checked="True" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTMTTiengOnKhong" runat="server" Text="Không" GroupName="TiengOn" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        6.3.2. Khói bụi
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTMTKhoiBuiNhieu" runat="server" Text="Nhiều" GroupName="KhoiBui"
                                            Checked="True" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTMTKhoiBuiTrungBinh" runat="server" Text="Trung bình"
                                            GroupName="KhoiBui" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTMTKhoiBuiIt" runat="server" Text="Ít" GroupName="KhoiBui" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        6.3.3. Tình trạng ngập
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTMTTTNgapNhieu" runat="server" Text="Nhiều" GroupName="TinhTrangNgap"
                                            Checked="True" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTMTTTNgapTrungBinh" runat="server" Text="Trung bình" GroupName="TinhTrangNgap" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTMTTTNgapIt" runat="server" Text="Ít" GroupName="TinhTrangNgap" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTMTTTNgapKhongCo" runat="server" Text="Không có" GroupName="TinhTrangNgap" />
                                    </td>
                                </tr>
                            </table>
                            6.4. An ninh trật tự<br />
                            <table style="margin-left: 20px">
                                <tr>
                                    <td>
                                        6.4.1. Hệ thống chiếu sáng vỉa hè
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTANTTChieuSangCo" runat="server" Text="Có" GroupName="ChieuSangViaHe"
                                            Checked="True" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTANTTChieuSangKhong" runat="server" Text="Không" GroupName="ChieuSangViaHe" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        6.4.2. Chốt bảo vệ dân phòng
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTANTTDanPhongCo" runat="server" Text="Có" GroupName="ChotDanPhong"
                                            Checked="True" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTANTTDanPhongKhong" runat="server" Text="Không" GroupName="ChotDanPhong" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        6.4.3. An ninh trật tự
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTANTTTot" runat="server" Text="Tốt" GroupName="AnNinhTratTu"
                                            Checked="True" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTANTTTrungBinh" runat="server" Text="Trung bình" GroupName="AnNinhTratTu" />
                                    </td>
                                    <td>
                                        <asp:RadioButton ID="cbxTTHTANTTKem" runat="server" Text="Kém" GroupName="AnNinhTratTu" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                    <span class="groupWidget-min">&nbsp;</span> <span class="ui-dialog-title">7.Ý KIẾN KHÁC
                        CỦA THẨM ĐỊNH VIÊN</span></div>
                <table>
                    <tr>
                        <td style="font-weight: bold; text-align: center">
                            <span>Hạng mục</span>
                        </td>
                        <td style="width: 50px; font-weight: bold; text-align: center">
                            <span>Có</span>
                        </td>
                        <td style="width: 50px; font-weight: bold; text-align: center">
                            <span>Không</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Gần cơ sở giáo dục (trường phổ thông, trường đại học, viện…)
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxYKKhacCSGDCo" runat="server" GroupName="CoSoGiaoDuc" Checked="True" />
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxYKKhacCSGDKhong" runat="server" GroupName="CoSoGiaoDuc" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Gần cơ sở y tế (Trạm y tế, bệnh viên)
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxYKKhacCSYTeCo" runat="server" GroupName="CoSoYTe" Checked="True" />
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxYKKhacCSYTeKhong" runat="server" GroupName="CoSoYTe" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Gần chợ hoặc trung tâm thương mại
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxYKKhacTTTMCo" runat="server" GroupName="TTThuongMai" Checked="True" />
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxYKKhacTTTMKhong" runat="server" GroupName="TTThuongMai" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Gần cơ sở giải trí, văn hóa, xã hội
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxYKKhacCSGiaiTriCo" runat="server" GroupName="CoSOGiaiTri"
                                Checked="True" />
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxYKKhacCSGiaiTriKhong" runat="server" GroupName="CoSOGiaiTri" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Gần dịch vụ công cộng (bến xe, nhà ga, sân bay)
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxYKKhacDVCCCo" runat="server" GroupName="DichVuCongCong" Checked="True" />
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxYKKhacDVCCKhong" runat="server" GroupName="DichVuCongCong" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Gần thông tin liên lạc (bưu điện)
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxYKKhacTTLLCo" runat="server" GroupName="ThongTinLienLac"
                                Checked="True" />
                        </td>
                        <td>
                            <asp:RadioButton ID="cbxYKKhacTTLLKhong" runat="server" GroupName="ThongTinLienLac" />
                        </td>
                    </tr>
                </table>
                <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                    <span class="groupWidget-min">&nbsp;</span> <span class="ui-dialog-title">8.Ý KIẾN KHÁC
                        CỦA THẨM ĐỊNH VIÊN:</span></div>
                <div style="padding-right: 5px">
                    <asp:TextBox ID="txtYkienRieng" runat="server" TextMode="MultiLine" Height="200px"
                        Width="100%"></asp:TextBox></div>
                <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                    <span class="groupWidget-min">&nbsp;</span> <span class="ui-dialog-title">9.KHÁC:</span></div>
                <table>
                    <tr>
                        <td>
                            <span style="font-weight: bold">*** Họ tên người thu thập số liệu:</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtTenNguoiThuThap" runat="server" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span style="font-weight: bold">*** Thời gian thu thập số liệu:</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtThoiGianThuThap" runat="server" Width="200px" onkeypress="return false;"></asp:TextBox>
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/calendar.png" />
                            <cc2:CalendarExtender ID="CalendarExtender1" TargetControlID="txtThoiGianThuThap"
                                PopupButtonID="txtThoiGianThuThap" Format="dd/MM/yyyy" runat="server">
                            </cc2:CalendarExtender>
                            <cc2:CalendarExtender ID="CalendarExtender2" TargetControlID="txtThoiGianThuThap"
                                PopupButtonID="Image1" Format="dd/MM/yyyy" runat="server">
                            </cc2:CalendarExtender>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="action_bar">
                <div class="right">
                    <cc1:wsBtnAction ID="btnAdd1" runat="server" LocaleText="Add" ButtonType="ButtonAdd"
                        OnClick="btnAdd_Click" OnClientClick="javascript:Dialog.showLoader();"></cc1:wsBtnAction>
                    <cc1:wsBtnAction ID="btnSaveTemp1" runat="server" LocaleText="SaveTemp" ButtonType="ButtonSave"
                        OnClick="btnSaveTemp_Click" OnClientClick="javascript:Dialog.showLoader();"></cc1:wsBtnAction>
                    <cc1:wsBtnAction ID="btnSave1" runat="server" LocaleText="Save" ButtonType="ButtonSave"
                        OnClick="btnSave_Click" OnClientClick="javascript:Dialog.showLoader();"></cc1:wsBtnAction>
                </div>
                <div class="left">
                    <cc1:wsBtnAction ID="btnDelete1" runat="server" LocaleText="Delete" ButtonType="ButtonDelete"
                        OnClick="btnDelete_Click" OnClientClick="javascript:if(confirm('Bạn có chắc là muốn xóa?')){Dialog.showLoader();return true;}else{return false;}"></cc1:wsBtnAction>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

    <script type="text/javascript">
        var txtPLKhac = "<%= txtPLKhac.ClientID %>";
        var txtHTTTKhac = "<%= txtHTTTKhac.ClientID %>";
        var txtTTTDatHinhDangKhac = "<%= txtTTTDatHinhDangKhac.ClientID %>";
        var txtTTCTLoaiNhaChungChuKhac = "<%= txtTTCTLoaiNhaChungChuKhac.ClientID %>";
        var txtTTCTVatLieuKhungKhac = "<%= txtTTCTVatLieuKhungKhac.ClientID %>";
        var txtTTCTVatLieuMongKhac = "<%= txtTTCTVatLieuMongKhac.ClientID %>";
        var txtTTCTVatLieuTuongKhac = "<%= txtTTCTVatLieuTuongKhac.ClientID %>";
        var txtrbTTCTVatLieuNenKhac = "<%= txtrbTTCTVatLieuNenKhac.ClientID %>";
        var txtTTCTVatLieuMaiKhac = "<%= txtTTCTVatLieuMaiKhac.ClientID %>";
        var txtTTCTVatLieuCongTrinhKhac = "<%= txtTTCTVatLieuCongTrinhKhac.ClientID %>";

        var txtDiaChi = "<%= txtDiaChiChuSuDung.ClientID %>";
        var txtDuong = "<%= txtDuong.ClientID %>";
        var txtDoanDuong = "<%= txtDoanDuong.ClientID %>";
        var ddlPhuong = "<%= ddlPhuong.ClientID %>";
        var ddlQuan = "<%= ddlQuan.ClientID %>";

        var default_address = 'Phan Xich Long,Binh Thanh,Ho Chi Minh';
        var default_point = new GLatLng(10.7986288, 106.6876067);
        var default_zoom = 17;
        var map;
        var geocoder;
        var txt_lat = $("#" + "<%= txtViDo.ClientID %>");
        var txt_long = $("#" + "<%= txtKinhDo.ClientID %>");

        function resetMapWithAdress() {
            var address = "";
            if (txtDiaChi) {
                address += $("#" + txtDiaChi).val() + ",";
                initialize_map(default_point, address);
            } else {
                alert('This address is uncorrect !!!');
            }

        }
        function resetMap() {
            var address = "";
            if ((txt_lat.val().length > 0 && txt_long.val().length > 0)) {
                default_point = new GLatLng(txt_lat.val(), txt_long.val());
            } else {
                if (txtDiaChi && $("#" + txtDiaChi).val().length > 0) {
                    address = $("#" + txtDiaChi).val();
                } else {
                    address = default_address;
                }
            }

            initialize_map(default_point, address);
        }

        function initialize_map(default_point, address) {
            map = new GMap2(document.getElementById("map_canvas"));
            map.setCenter(default_point, default_zoom);
            var marker = new GMarker(default_point, { draggable: true });
            google.maps.Event.addListener(marker, "dragend", function(latlng) {
                marker.closeInfoWindow();
                txt_lat.val(latlng.y);
                txt_long.val(latlng.x);
                marker.enableDragging();
            });
            map.addOverlay(marker);
            map.addControl(new GLargeMapControl);
            GEvent.addListener(map, "click", getAddress);
            geocoder = new GClientGeocoder();
            if (address.toString().length > 0) {
                map.clearOverlays();
                get_latlong(address);
            }
        }

        function getAddress(overlay, latlng) {
            if (latlng != null) {
                address = latlng;
                geocoder.getLocations(latlng, showAddress);
            }
        }

        function get_latlong(address) {
            if (geocoder) {
                geocoder.getLatLng(
                  address,
                  function(point) {
                      if (!point) {
                          alert(address + " not found");
                      } else {
                          map.setCenter(point, default_zoom);
                          var marker = new GMarker(point, { draggable: true });
                          google.maps.Event.addListener(marker, "dragend", function(latlng) {
                              marker.closeInfoWindow();
                              txt_lat.val(latlng.y);
                              txt_long.val(latlng.x);
                              marker.enableDragging();
                          });
                          map.addOverlay(marker);
                          marker.openInfoWindowHtml(address);
                          //JQuery assign values - Note format
                          txt_lat.val(point.y);
                          txt_long.val(point.x);
                      }
                  }
                );
            }
        }

        function showAddress(response) {
            map.clearOverlays();
            if (!response || response.Status.code != 200) {
                alert("Status Code:" + response.Status.code);
            }
            else {
                place = response.Placemark[0];
                point = new GLatLng(place.Point.coordinates[1], place.Point.coordinates[0]);
                marker = new GMarker(point, { draggable: true });
                google.maps.Event.addListener(marker, "dragend", function(latlng) {
                    marker.closeInfoWindow();
                    txt_lat.val(latlng.y);
                    txt_long.val(latlng.x);
                    marker.enableDragging();
                });
                map.addOverlay(marker);
                map.setCenter(point);

                try {
                    //JQuery assign values - Note format
                    txt_lat.val(point.y);
                    txt_long.val(point.x);
                    marker.openInfoWindowHtml(
                    '<b>Kinh Độ:</b>' + place.Point.coordinates[1] + '<br/>' +
                    '<b>Vĩ Độ:</b>' + place.Point.coordinates[0] + '<br>' +
                    //'<b>Status Code:</b>' + response.Status.code + '<br>' +
                    //'<b>Status Request:</b>' + response.Status.request + '<br>' +
                    '<b>Địa chỉ:</b>' + place.address + '<br>' +
                    '<b>Độ chính xác:</b>' + place.AddressDetails.Accuracy);

                    //alert(elem.value);
                }
                catch (err) {

                }
            }
        }

        function pageLoad(sender, args) {
            var controlDuong = $('#<%= txtDuong.ClientID %>');
            var hrefDuong = "/SuggestionHelper.aspx?type=duongsuggestion&qid=" + $('#<%= ddlQuan.ClientID %> option:selected').val() + "&pid=" + $('#<%= ddlPhuong.ClientID %> option:selected').val();
            Tags.autoCompleteTextbox(controlDuong, hrefDuong);
            var controlDoanDuong = $('#<%= txtDoanDuong.ClientID %>');
            var hrefDoanDuong = "/SuggestionHelper.aspx?type=doanduongsuggestion&qid=" + $('#<%= ddlQuan.ClientID %> option:selected').val() + "&pid=" + $('#<%= ddlPhuong.ClientID %> option:selected').val();
            Tags.autoCompleteTextbox(controlDoanDuong, hrefDoanDuong);

            try {
                if (args.get_isPartialLoad()) {
                    Main.init(); // important
                    resetMap();
                }
            }
            catch (err) {
                //alert('gmap loading error!!!' + err)
            }
        }

        $(document).ready(function() {
            var controlDuong = $('#<%= txtDuong.ClientID %>');
            var hrefDuong = "/SuggestionHelper.aspx?type=duongsuggestion&qid=" + $('#<%= ddlQuan.ClientID %> option:selected').val() + "&pid=" + $('#<%= ddlPhuong.ClientID %> option:selected').val();
            Tags.autoCompleteTextbox(controlDuong, hrefDuong);
            var controlDoanDuong = $('#<%= txtDoanDuong.ClientID %>');
            var hrefDoanDuong = "/SuggestionHelper.aspx?type=doanduongsuggestion&qid=" + $('#<%= ddlQuan.ClientID %> option:selected').val() + "&pid=" + $('#<%= ddlPhuong.ClientID %> option:selected').val();
            Tags.autoCompleteTextbox(controlDoanDuong, hrefDoanDuong);

            try {
                resetMap();
                //jQuery(':text').val("50");

            }
            catch (err) {
                alert('page loading error!!!' + err)
            }
        });
    </script>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="phd_footer" runat="server">
</asp:Content>
